﻿using System.Windows;
using ControleRepresentanteSync.Application.Pedido;
using ControleRepresentanteSync.ControleRepresentanteServices;

namespace ControleRepresentanteSync.View.Pedido
{
    class AttributeItem : ViewModelBase, IAttributeItem
    {
        public static readonly DependencyProperty NameProperty = 
            DependencyProperty.Register("Name", typeof(string), typeof(AttributeItem));
        public static readonly DependencyProperty ValueProperty = 
            DependencyProperty.Register("Value", typeof(string), typeof(AttributeItem));

        public AttributeContract Contract { get; set; }

        public string Name
        {
            get { return (string) GetValue(NameProperty); }
            set { SetValue(NameProperty, value); }
        }


        public string Value
        {
            get { return (string) GetValue(ValueProperty); }
            set { SetValue(ValueProperty, value); }
        }
    }
}
